package cn.itcast.bos.service.take_delivery;/**
 * Created with IntelliJ IDEA.
 *
 * @author: SOS
 * @create: 2018-03-04 16:57
 */

import cn.itcast.bos.domain.take_delivery.Order;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * @program: ideabos2.0
 * @description: Order的业务层
 * @author: SOS
 * @create: 2018-03-04 16:57
 **/
public interface OrderService {

    @Path("/order")
    @POST
    @Consumes({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
    @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
    public void saveOrder(Order order);

    Order findByOrderNum(String orderNum);
}
